<?php
echo $_POST['str'] ;
$str=$_POST['str'];
$length=strlen($str);
echo '<br/>';
var_dump($length);